Add support for non-tensor inputs in AutoParallel#264
Open
Conversation
fmassa
commented
Nov 21, 2025
| @@ -646,31 +646,6 @@ def convert_element_type_rule(mesh, op_schema): | |||
| return out_strat | |||
|
|
|||
|
|
|||
| @register_opschema_rule(torch.ops.aten.split.Tensor) | |||
| def split_rule(mesh, op_schema): | |||
Contributor
Author
There was a problem hiding this comment.
aten.split.Tensor has been implemented upstream in pytorch/pytorch#149106
…sa/support_non_tensor_inputs
…sa/support_non_tensor_inputs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds support for non-tensor inputs in AutoParallel.
The current tracing system seems to bake-in the non-tensor values as constants in the graph, so the only place where they appear is as a placeholder node which isn't used anywhere.
So the current approach is just to do the bare minimum for this case to correctly run.
Non-tensor inputs should have a
Noneinput placement, which is exercised in the newly-added test